import ajax from "../request.js";
// 发布打卡
export const publishClock = (id,params = {})=>{
	return ajax({
		url:`/api/moveAbout/${id}`,
		method:"post",
		params
	})
}
// 打卡签到
export const clockIn = (params = {})=>{
	return ajax({
		url:"/api/clockIn",
		method:"post",
		params
	})
}
// 获取打卡记录
export const clockRecords = (params = {})=>{
	return ajax({
		url:"/api/clockIn",
		method:"get",
		params
	})
}
// 签到
export const addRecords = (params = {}) => {
	return ajax({
		url:"/api/clockIn",
		method:"post",
		params
	})
}
// 签退
export const clockOut = (id,params = {}) =>{
	return ajax({
		url:`/api/clockIn/${id}`,
		method:"post",
		params
	})
}